package ooday01;

public class Phone {
    String brank;
    String color;
    double  price;
    String type;
    int age;
    Phone(String brank,String color,double price,String type,int age){
        this.age=age;
        this.brank=brank;
        this.color=color;
        this.price=price;
        this.age=age;
        this.type=type;
    }
    void buy(){
        System.out.println("花了"+price+"买了一个"+brank+color+"的"+type+"二手机"+"用"+age+"年了");
    }
    void buy(int age,String brank,double price){}

}
